﻿CREATE TRIGGER LoanCancellingDebts_Tracking_Delete
ON [dbo].[LoanCancellingDebts] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanCancellingDebts_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanCancellingDebts_Tracking s JOIN DELETED i
    ON s.LoanCancellingDebtID = i.LoanCancellingDebtID
END











